
public class Bascara {

	public Object calcular(double a, double b, double c){
		Double var1 = (b*b - 4*a*c);
		if (var1 < 0) return "Tiene raices complejas";
		if (var1 == 0)
			if ( -b/(2*a) == -0.0) return 0.0;
			else return -b/(2*a);
		Double[] var2 = {(-b-Math.sqrt(var1))/(2*a), (-b+Math.sqrt(var1))/(2*a)};
		return var2;
	}
}
